package com.mes.md.service.impl;

import com.mes.md.mapper.WorkstationMachineMapper;
import com.mes.md.service.WorkstationMachineService;
import com.mes.pojo.md.MdWorkstationMachine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/26 14:13
 */

@Service
public class WorkstationMachineServiceImpl implements WorkstationMachineService {
    @Autowired
    private WorkstationMachineMapper workstationMachineMapper;


    @Override
    public List<MdWorkstationMachine> queryMachines(Long workstationId) {
        return workstationMachineMapper.queryMachines(workstationId);
    }

    @Override
    public Integer deleteMachine(Long machineryId) {
        return workstationMachineMapper.deleteMachine(machineryId);
    }

    @Override
    public Integer insertMachine(MdWorkstationMachine workstationMachine) {
        return workstationMachineMapper.insertMachine(workstationMachine);
    }
}
